package com.ymatou.iapi.withdraw.service;

import com.ymatou.iapi.withdraw.parameter.withDrawInvoiceListResp;
import com.ymatou.iapi.withdraw.parameter.withDrawInvoiceListResp2;
import com.ymt.base.YmatouBaseCall;
import com.ymt.core.tool.FormatUtil;
import com.ymttest.utils.EnvSetup;
/**
*提现记录列表--买家/买手提现记录查询Call
*FreeMaker Template自动生成代码
*/
public class QueryListCall extends YmatouBaseCall{
	private static String opurl ="/api/WithDrawQuery/QueryList";
	
	public QueryListCall() {
		super(EnvSetup.getSystemUrl("withdraw_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	 public String getSuccess()
	    {
	        return getString("Success");
	    }

	    public String getCode()
	    {
	        return getString("Code");
	    }
	    public String getBCode()
	    {
	        return getString("BCode");
	    }
	    
	    public String getMsg()
	    {
	        return getString("Msg");
	    }
	    
	    public withDrawInvoiceListResp2 getWithDrawInvoiceListResp()
	    {
	    	return (withDrawInvoiceListResp2) FormatUtil.GSONToObject(getString("Data"),
	    			withDrawInvoiceListResp2.class);
	    	
	    }
}